package com.zhipu.balance.ui.activate

import android.os.Bundle
import androidx.lifecycle.ViewModelProvider
import com.zhipu.balance.R
import com.zhipu.balance.databinding.ActivityActivateBinding
import com.zhipu.balance.ui.BaseActivity
import com.zhipu.balance.ui.vm.activate.ActivateViewModel
import com.zhipu.balance.utils.InitializeUtils

/**
 * 激活页面
 */
class ActivateActivity : BaseActivity<ActivityActivateBinding>() {

    //VM
    private var activateViewModel: ActivateViewModel? = null



    override fun initCreate() {
        super.initCreate()
        InitializeUtils.AppComponent()?.doInjectionMain(this)
        activateViewModel = ViewModelProvider(this, viewModelFactory)[ActivateViewModel::class.java]
    }


    override fun initContentView(savedInstanceState: Bundle?): Int {
        return R.layout.activity_activate
    }

    override fun initView() {
        super.initView()
        binding.viewModel = activateViewModel
    }

}